package com.pure.database.greendao.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Unique;

/**
 * FileName : GDOrder
 * Author : luqihua
 * Date : 2025/3/20
 * Desc :
 **/

@Entity
public class GDOrder {
    @Id(autoincrement = true)
    private Long id;

    @Property(nameInDb = "USER_NAME")
    private String name;

    @NotNull
    private int amount;

    @Unique
    private Long userId;

    @Generated(hash = 237334349)
    public GDOrder(Long id, String name, int amount, Long userId) {
        this.id = id;
        this.name = name;
        this.amount = amount;
        this.userId = userId;
    }

    @Generated(hash = 1032294006)
    public GDOrder() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAmount() {
        return this.amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public Long getUserId() {
        return this.userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
}
